// ===============================================
// app_user_info
// 
// Create by Will on 2020/10/20 7:01 PM
// Copyright @data_food.All rights reserved.
// ===============================================

import 'package:built_value/built_value.dart';
import 'package:built_value/serializer.dart';
import 'package:flutter_base/preference/serializers.dart';

/// This allows the `AppUserInfo` class to access private members in
/// the generated file. The value for this is *.g.dart, where
/// the star denotes the source file name.
part 'app_user_info.g.dart';

abstract class AppUserInfo
    implements Built<AppUserInfo, AppUserInfoBuilder> {
  @nullable
  int get userId;
  @nullable
  String get phone;
  @nullable
  String get qq;
  @nullable
  String get email;
  @nullable
  String get lcOpenId;
  @nullable
  String get wxOpenId;
  @nullable
  String get password;
  @nullable
  String get firstName;
  @nullable
  String get lastName;
  @nullable
  String get nickName;
  @nullable
  int get sex;
  @nullable
  int get age;
  @nullable
  String get birthday;
  @nullable
  double get bodyTall;
  @nullable
  String get bodyType;
  @nullable
  String get academic;
  @nullable
  int get status;
  @nullable
  String get occupation;
  @nullable
  String get income;
  @nullable
  int get integral;
  @nullable
  double get balance;
  @nullable
  int get credit;
  @nullable
  double get longitude;
  @nullable
  double get latitude;
  @nullable
  String get addressCode;
  @nullable
  String get addressCode_Name;
  @nullable
  String get invitationCode;
  @nullable
  String get lastLogintime;
  @nullable
  int get logintime;
  @nullable
  String get createTime;
  @nullable
  int get userType;
  @nullable
  String get remark;
  @nullable
  String get imId;
  @nullable
  String get imPassword;


  AppUserInfo._();
  factory AppUserInfo([void Function(AppUserInfoBuilder) updates]) =
  _$AppUserInfo;

  Map<String, dynamic> toJson() {
    return serializers.serializeWith(AppUserInfo.serializer, this);
  }

  static AppUserInfo fromJson(Map<String, dynamic> json) {
    return serializers.deserializeWith(AppUserInfo.serializer, json);
  }

  static Serializer<AppUserInfo> get serializer => _$appUserInfoSerializer;
}
